package org.flyby;

import org.apache.wicket.Component;
import org.apache.wicket.behavior.Behavior;
import org.apache.wicket.markup.head.CssHeaderItem;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.request.resource.PackageResourceReference;

/**
 * User: Yehuda Zfati
 * Date: 21/01/13
 */
public class FlybyResourcePackage extends Behavior {

    @Override
    public void renderHead(Component component, IHeaderResponse response) {
        response.render(JavaScriptHeaderItem.forReference(new PackageResourceReference(FlybyResourcePackage.class, "js/cordova-2.5.0.js")));
        response.render(JavaScriptHeaderItem.forReference(new PackageResourceReference(FlybyResourcePackage.class, "js/barcodescanner.js")));
        response.render(JavaScriptHeaderItem.forReference(new PackageResourceReference(FlybyResourcePackage.class, "js/main.js")));
        response.render(JavaScriptHeaderItem.forReference(new PackageResourceReference(FlybyResourcePackage.class, "js/jquery.mobile.custom.js")));
        response.render(CssHeaderItem.forReference(new PackageResourceReference(FlybyResourcePackage.class, "css/jquery.mobile-1.3.1.min.css")));

        response.render(CssHeaderItem.forReference(new PackageResourceReference(FlybyResourcePackage.class, "css/flyby.css")));
        response.render(CssHeaderItem.forReference(new PackageResourceReference(FlybyResourcePackage.class, "css/loading.css")));
    }
}
